FROM jdk:8
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/${TZ} /etc/localtime && echo ${TZ} > /etc/timezone
COPY admin-api/target/admin-api.jar .
WORKDIR .
ENTRYPOINT java -Xms512m -Xmx1024m -jar -Dspring.profiles.active=dev admin-api.jar